﻿using ModelDto;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SqlserverManager
{
    public  interface IDbConnectionFactory
    {
        /// <summary>
        /// 获取上下文 自动主从
        /// </summary>
        /// <returns></returns>
        public SqlSugarClient CreateDbContext();

        ///// <summary>
        ///// 获取上下文 手动选择读写数据库 
        ///// </summary>
        ///// <param name="dBWriteOrRead"></param>
        ///// <returns></returns>
        //public SqlSugarClient CreateDbContext(DBWriteOrRead dBWriteOrRead);
    }
}
